<?php
class Hello{
  function sayHello(){
    echo 'then~u knows~';
  }

  function defaultAction(){
    echo "Hello World!";
  }

  function sayHelloTo(){
    echo "then~u knows~ to {$_GET['name']}";
  }
  
  function sayHelloView(){
    $data = array(
        'title' => 'jhjasda',
        'content' => 'kjfsdjfk4jfds4jdjdjsdfj',
        'link' => Kernel::url('Hello', 'sayHelloTo', array('name' => 'mememe')),
    );
    Kernel::render('hello', $data);
  }

  function formTest(){
      Kernel::import('helper.web.fwform');
      $form = new FWForm('Hello', 'formTestRes',array('id' => 1));
      $form->setAttribute('id', 'snow');
      $form->addCom(array(
          'input' => array(
              'name' => 'sl',
              'value' => 'sl',
              'id' => 'sl',
              'type' => 'text',
          )
      ));
      $form->addCom(array(
          'input' => array(
              'value' => 'submit',
              'type' => 'submit',
          )
      ));
      echo $form->output();
  }
  
  function formTestRes(){
      var_dump($_GET);
      var_dump($_POST);
  }
}
?>